package agency.web.app.service;


import java.util.List;

import agency.web.app.domain.User;


public interface UserService {
	
	
	void addUser (User u);
	void modifyUser (User u);
	User findUserById (int id);
	List<User> findUserByName (String name);
	void deleteUserById(int id);
	void deleteUser(User c);
	User userRegistration(String login, String password);
	void logoutUser(int userId);
	boolean isAgent(User u);
	List<User> findAllAgents();
	List<User> findAgentByClient (User client);
	boolean isClient(User u);
	List<User> findAllClients();
	List<User> findClientsByAgent (User agent);
	
}
